<!DOCTYPE HTML>
<!--此处是引用thymeleaf的模板的语法-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${questiondto.getTitle()}"></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="/css/index.css">
    <script src="/js/jquery.js"></script>
    <script src="/js/bootstrap.min.js" type="application/javascript"></script>
</head>
<body>
<!--导入导航栏-->
<div th:insert="~{navigation::nav}"></div>
<div class="container-fluid main">
    <div class="row">
        <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
            <h3><span th:text="${questiondto.getTitle()}"></span></h3>
            <span class="text-desc">
                 作者:<span th:text="${questiondto.getUser().getName()}"></span>&nbsp|
                 发布时间:<span th:text="${#dates.format(questiondto.getGmtCreate(), 'yyyy-MM-dd')}"></span>&nbsp|
                 阅读数:<span th:text="${questiondto.getViewCount()}"></span>
            </span>

            <hr>
            <!-- 下面这个div是写的具体的内容 -->
            <div class="col-lg-12 col-md-12 col-xs-12" th:text="${questiondto.getDescription()}">

            </div>
            <hr class="col-lg-12 col-md-12 col-xs-12">
            <a th:href="@{'publish'+${questiondto.getId()}}">
                    <span class="glyphicon glyphicon-pencil" aria-hidden="true">
                        编辑
                    </span>
            </a>
        </div>

        <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <h4>发起人</h4>
                <div class="media">
                    <div class="media-left">
                        <a href="#">
                            <img class="media-object img-circle"
                                 th:src="${questiondto.getUser().getAvatarUrl()}">
                        </a>
                    </div>
                    <div class="media-body">
                        <h6 class="media-heading" style="margin-top: 10px">
                            <span th:text="${questiondto.getUser().getName()}"></span>

                        </h6>

                        <hr class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    </div>
                </div>
            </div>


            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <h4>相关问题</h4>

            </div>

        </div>
    </div>
</div>


</body>
</html>